/* *
     协议参考 "RGBProtocol.md"
 * */

#ifndef __GRB_CONTROL_H
#define __GRB_CONTROL_H
#include "stdint.h"
#include "xd_message.h"


typedef enum
{
    SCROLL,
    BREATHE,
    CHARACTER = 8,
    IMAGE
}grb_types_t;

typedef struct
{
    uint8_t ch;
    uint8_t effectIndex;
}grb_control_t;

typedef struct
{
    uint8_t effectIndex;
    uint8_t scrollSteps;
}grb_scroll_param_t;

void car_speed_control(uint8_t speed);
void grb_panel_control(xd_grb_panel_t panel);
void car_front_back_strip_control(uint8_t effectIndex,uint8_t scrollNum,uint8_t period);
void car_strip_process(void);
#endif



